<template>
  <div id="app">
    <router-view :sData="sData"></router-view>
  </div>
</template>

<script  type="text/javascript">
  import sData from "src/assets/projectStaticsData.js"

export default {
  name: 'app',
  data(){
  return{
    sData:sData
  }},
  created(){
    this.sData.userId = m$.localStrages.get('userId');
    console.log(sData.comfootSData.navText);
  },
  watch:{
    '$route':function(val){
      //回到页面顶部
      window.scrollTo(0,0);
    }
  }

}
</script>

